<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Main.Canvas</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="autorzy: Elwira Kowalewska, Piotr Karolus, Kacper Kapu&#347;niak grupa 21K7">
Modelowanie i symulacja zderze&#324; spr&#281;&#380;ystych
</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Main-module.html">Module&nbsp;Main</a> ::
        Class&nbsp;Canvas
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Main.Canvas-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Canvas</h1><p class="nomargin-top"><span class="codelink"><a href="Main-pysrc.html#Canvas">source&nbsp;code</a></span></p>
<pre class="base-tree">
     object --+                
              |                
wx._core.Object --+            
                  |            
wx._core.EvtHandler --+        
                      |        
        wx._core.Window --+    
                          |    
          wx._windows.Panel --+
                              |
             object --+       |
                      |       |
     threading._Verbose --+   |
                          |   |
           threading.Thread --+
                              |
                             <strong class="uidshort">Canvas</strong>
</pre>

<hr />
<p>Klasa implementuj&#261;ca zdarzenia zwi&#261;zane z rysowaniem na p&#322;&#243;tnie.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">EvtHandler</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">ToolBar</span>,
        <span class="summary-sig-arg">MainFrame</span>)</span><br />
      Konstruktor tworzy losowy zestaw pi&#322;eczek na podstawie opcji 
      symulacji wybranych przez u&#380;ytkownika.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#OnTool" class="summary-sig-name">OnTool</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Event</span>)</span><br />
      Procedura wywo&#322;ywana w momencie naci&#347;ni&#281;cia jednego z przycisk&#243;w 
      paska narz&#281;dzi.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.OnTool">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#OnOptions" class="summary-sig-name">OnOptions</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Event</span>)</span><br />
      Procedura wywo&#322;ywana w momencie naci&#347;ni&#281;cia przycisku opcji 
      <b>Options</b>.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.OnOptions">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#createRandomBall" class="summary-sig-name">createRandomBall</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja tworz&#261;ca pi&#322;eczk&#281; o losowym po&#322;o&#380;eniu pocz&#261;tkowym, promieniu,
      masie i pocz&#261;tkowej pr&#281;dko&#347;ci zgodnie z minimalnymi i maksymalnymi 
      warto&#347;ciami tych parametr&#243;w podanymi w opcjach symulacji.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.createRandomBall">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#createWalls" class="summary-sig-name">createWalls</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Funkcja tworz&#261;ca predefiniowan&#261; list&#281; &#347;cian - nieruchomych przeszk&#243;d 
      dla pi&#322;eczek.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.createWalls">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#OnPaint" class="summary-sig-name">OnPaint</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Event</span>)</span><br />
      Procedura obs&#322;uguj&#261;ca zdarzenie aktualizacji zawarto&#347;ci okna, w tym 
      po&#322;o&#380;enie pi&#322;eczek na p&#322;&#243;tnie.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.OnPaint">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#OnSize" class="summary-sig-name">OnSize</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">Event</span>)</span><br />
      Procedura obs&#322;uguj&#261;ca zdarzenie zmiany wielko&#347;ci okna.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.OnSize">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="UpdateBuffer"></a><span class="summary-sig-name">UpdateBuffer</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Procedura inicjalizuj&#261;ca p&#322;&#243;tno programu now&#261; pust&#261; bitmap&#261;.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.UpdateBuffer">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#Redraw" class="summary-sig-name">Redraw</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Procedura rysuj&#261;ca na p&#322;&#243;tnie wszystkie pi&#322;eczki oraz &#347;ciany w ich 
      aktualnym po&#322;o&#380;eniu.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.Redraw">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#playSimulation" class="summary-sig-name">playSimulation</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Procedura uruchamiaj&#261;ca w&#261;tek symulacji.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.playSimulation">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="pauseSimulation"></a><span class="summary-sig-name">pauseSimulation</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Procedura wstrzymuj&#261;ca w&#261;tek symulacji.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.pauseSimulation">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#stopSimulation" class="summary-sig-name">stopSimulation</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Procedura zatrzymuj&#261;ca w&#261;tek symulacji.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.stopSimulation">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="bounceBallsAgainstCollidingWalls"></a><span class="summary-sig-name">bounceBallsAgainstCollidingWalls</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Procedura wyliczaj&#261;ca pr&#281;dko&#347;&#263; pi&#322;eczek po odbiciu od &#347;cian, z 
      kt&#243;rymi stykaj&#261; si&#281; w danym momencie pi&#322;eczki.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.bounceBallsAgainstCollidingWalls">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="calculateBallsVelocitiesAfterCollision"></a><span class="summary-sig-name">calculateBallsVelocitiesAfterCollision</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Procedura obliczaj&#261;ca nowe pr&#281;dko&#347;ci pi&#322;eczek po zderzeniu.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.calculateBallsVelocitiesAfterCollision">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#calculateBallPositionAfterTime" class="summary-sig-name">calculateBallPositionAfterTime</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">ball</span>,
        <span class="summary-sig-arg">t</span>)</span><br />
      Funkcja obliczaj&#261;ca po&#322;o&#380;enie pi&#322;eczki po czasie t, w kt&#243;rym 
      znalaz&#322;aby si&#281; pi&#322;eczka, je&#347;li nie nast&#261;pi&#322;aby w tym czasie kolizja.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.calculateBallPositionAfterTime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="calculateBallVelocityAfterTime"></a><span class="summary-sig-name">calculateBallVelocityAfterTime</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">ball</span>,
        <span class="summary-sig-arg">t</span>)</span><br />
      Funkcja obliczaj&#261;ca po&#322;o&#380;enie pi&#322;eczki po czasie t, w kt&#243;rym 
      znalaz&#322;aby si&#281; pi&#322;eczka, je&#347;li nie nast&#261;pi&#322;aby w tym czasie kolizja.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.calculateBallVelocityAfterTime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Main.Canvas-class.html#simulate" class="summary-sig-name">simulate</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">iterationStartTime</span>=<span class="summary-sig-default">0</span>)</span><br />
      Procedura obs&#322;uguj&#261;ca g&#322;&#243;wn&#261; p&#281;tl&#281; symulacji.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Main-pysrc.html#Canvas.simulate">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._windows.Panel</code></b>:
      <code>Create</code>,
      <code>SetFocusIgnoringChildren</code>,
      <code>__repr__</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._core.Window</code></b>:
      <code>AcceptsFocus</code>,
      <code>AcceptsFocusFromKeyboard</code>,
      <code>AddChild</code>,
      <code>AdjustForLayoutDirection</code>,
      <code>AlwaysShowScrollbars</code>,
      <code>AssociateHandle</code>,
      <code>CacheBestSize</code>,
      <code>CanAcceptFocus</code>,
      <code>CanAcceptFocusFromKeyboard</code>,
      <code>CanApplyThemeBorder</code>,
      <code>CanBeOutsideClientArea</code>,
      <code>CanScroll</code>,
      <code>CanSetTransparent</code>,
      <code>CaptureMouse</code>,
      <code>Center</code>,
      <code>CenterOnParent</code>,
      <code>Centre</code>,
      <code>CentreOnParent</code>,
      <code>ClearBackground</code>,
      <code>ClientToScreen</code>,
      <code>ClientToScreenXY</code>,
      <code>ClientToWindowSize</code>,
      <code>Close</code>,
      <code>ConvertDialogPointToPixels</code>,
      <code>ConvertDialogSizeToPixels</code>,
      <code>ConvertPixelPointToDialog</code>,
      <code>ConvertPixelSizeToDialog</code>,
      <code>DLG_PNT</code>,
      <code>DLG_SZE</code>,
      <code>Destroy</code>,
      <code>DestroyChildren</code>,
      <code>Disable</code>,
      <code>DissociateHandle</code>,
      <code>DragAcceptFiles</code>,
      <code>Enable</code>,
      <code>FindWindowById</code>,
      <code>FindWindowByLabel</code>,
      <code>FindWindowByName</code>,
      <code>Fit</code>,
      <code>FitInside</code>,
      <code>Freeze</code>,
      <code>GetAcceleratorTable</code>,
      <code>GetAdjustedBestSize</code>,
      <code>GetAutoLayout</code>,
      <code>GetBackgroundColour</code>,
      <code>GetBackgroundStyle</code>,
      <code>GetBestFittingSize</code>,
      <code>GetBestSize</code>,
      <code>GetBestSizeTuple</code>,
      <code>GetBestVirtualSize</code>,
      <code>GetBorder</code>,
      <code>GetCaret</code>,
      <code>GetCharHeight</code>,
      <code>GetCharWidth</code>,
      <code>GetChildren</code>,
      <code>GetClientAreaOrigin</code>,
      <code>GetClientRect</code>,
      <code>GetClientSize</code>,
      <code>GetClientSizeTuple</code>,
      <code>GetConstraints</code>,
      <code>GetContainingSizer</code>,
      <code>GetCursor</code>,
      <code>GetDefaultAttributes</code>,
      <code>GetDropTarget</code>,
      <code>GetEffectiveMinSize</code>,
      <code>GetEventHandler</code>,
      <code>GetExtraStyle</code>,
      <code>GetFont</code>,
      <code>GetForegroundColour</code>,
      <code>GetFullTextExtent</code>,
      <code>GetGrandParent</code>,
      <code>GetGtkWidget</code>,
      <code>GetHandle</code>,
      <code>GetHelpText</code>,
      <code>GetHelpTextAtPoint</code>,
      <code>GetId</code>,
      <code>GetLabel</code>,
      <code>GetLayoutDirection</code>,
      <code>GetMainWindowOfCompositeControl</code>,
      <code>GetMaxClientSize</code>,
      <code>GetMaxHeight</code>,
      <code>GetMaxSize</code>,
      <code>GetMaxWidth</code>,
      <code>GetMinClientSize</code>,
      <code>GetMinHeight</code>,
      <code>GetMinSize</code>,
      <code>GetMinWidth</code>,
      <code>GetName</code>,
      <code>GetNextSibling</code>,
      <code>GetParent</code>,
      <code>GetPopupMenuSelectionFromUser</code>,
      <code>GetPosition</code>,
      <code>GetPositionTuple</code>,
      <code>GetPrevSibling</code>,
      <code>GetRect</code>,
      <code>GetScreenPosition</code>,
      <code>GetScreenPositionTuple</code>,
      <code>GetScreenRect</code>,
      <code>GetScrollPos</code>,
      <code>GetScrollRange</code>,
      <code>GetScrollThumb</code>,
      <code>GetSize</code>,
      <code>GetSizeTuple</code>,
      <code>GetSizer</code>,
      <code>GetTextExtent</code>,
      <code>GetThemeEnabled</code>,
      <code>GetToolTip</code>,
      <code>GetToolTipString</code>,
      <code>GetTopLevelParent</code>,
      <code>GetUpdateClientRect</code>,
      <code>GetUpdateRegion</code>,
      <code>GetValidator</code>,
      <code>GetVirtualSize</code>,
      <code>GetVirtualSizeTuple</code>,
      <code>GetWindowBorderSize</code>,
      <code>GetWindowStyle</code>,
      <code>GetWindowStyleFlag</code>,
      <code>GetWindowVariant</code>,
      <code>HandleAsNavigationKey</code>,
      <code>HandleWindowEvent</code>,
      <code>HasCapture</code>,
      <code>HasExtraStyle</code>,
      <code>HasFlag</code>,
      <code>HasFocus</code>,
      <code>HasMultiplePages</code>,
      <code>HasScrollbar</code>,
      <code>HasTransparentBackground</code>,
      <code>Hide</code>,
      <code>HideWithEffect</code>,
      <code>HitTest</code>,
      <code>HitTestXY</code>,
      <code>InformFirstDirection</code>,
      <code>InheritAttributes</code>,
      <code>InheritsBackgroundColour</code>,
      <code>InitDialog</code>,
      <code>InvalidateBestSize</code>,
      <code>IsBeingDeleted</code>,
      <code>IsDoubleBuffered</code>,
      <code>IsEnabled</code>,
      <code>IsExposed</code>,
      <code>IsExposedPoint</code>,
      <code>IsExposedRect</code>,
      <code>IsFrozen</code>,
      <code>IsRetained</code>,
      <code>IsScrollbarAlwaysShown</code>,
      <code>IsShown</code>,
      <code>IsShownOnScreen</code>,
      <code>IsThisEnabled</code>,
      <code>IsTopLevel</code>,
      <code>Layout</code>,
      <code>LineDown</code>,
      <code>LineUp</code>,
      <code>Lower</code>,
      <code>MakeModal</code>,
      <code>Move</code>,
      <code>MoveAfterInTabOrder</code>,
      <code>MoveBeforeInTabOrder</code>,
      <code>MoveXY</code>,
      <code>Navigate</code>,
      <code>NavigateIn</code>,
      <code>PageDown</code>,
      <code>PageUp</code>,
      <code>PopEventHandler</code>,
      <code>PopupMenu</code>,
      <code>PopupMenuXY</code>,
      <code>PostCreate</code>,
      <code>PostSizeEvent</code>,
      <code>PostSizeEventToParent</code>,
      <code>ProcessWindowEvent</code>,
      <code>PushEventHandler</code>,
      <code>Raise</code>,
      <code>Refresh</code>,
      <code>RefreshRect</code>,
      <code>RegisterHotKey</code>,
      <code>ReleaseMouse</code>,
      <code>RemoveChild</code>,
      <code>RemoveEventHandler</code>,
      <code>Reparent</code>,
      <code>ScreenToClient</code>,
      <code>ScreenToClientXY</code>,
      <code>ScrollLines</code>,
      <code>ScrollPages</code>,
      <code>ScrollWindow</code>,
      <code>SendIdleEvents</code>,
      <code>SendSizeEvent</code>,
      <code>SendSizeEventToParent</code>,
      <code>SetAcceleratorTable</code>,
      <code>SetAutoLayout</code>,
      <code>SetBackgroundColour</code>,
      <code>SetBackgroundStyle</code>,
      <code>SetBestFittingSize</code>,
      <code>SetCanFocus</code>,
      <code>SetCaret</code>,
      <code>SetClientRect</code>,
      <code>SetClientSize</code>,
      <code>SetClientSizeWH</code>,
      <code>SetConstraints</code>,
      <code>SetContainingSizer</code>,
      <code>SetCursor</code>,
      <code>SetDimensions</code>,
      <code>SetDoubleBuffered</code>,
      <code>SetDropTarget</code>,
      <code>SetEventHandler</code>,
      <code>SetExtraStyle</code>,
      <code>SetFocus</code>,
      <code>SetFocusFromKbd</code>,
      <code>SetFont</code>,
      <code>SetForegroundColour</code>,
      <code>SetHelpText</code>,
      <code>SetHelpTextForId</code>,
      <code>SetId</code>,
      <code>SetInitialSize</code>,
      <code>SetLabel</code>,
      <code>SetLayoutDirection</code>,
      <code>SetMaxClientSize</code>,
      <code>SetMaxSize</code>,
      <code>SetMinClientSize</code>,
      <code>SetMinSize</code>,
      <code>SetName</code>,
      <code>SetOwnBackgroundColour</code>,
      <code>SetOwnFont</code>,
      <code>SetOwnForegroundColour</code>,
      <code>SetPosition</code>,
      <code>SetRect</code>,
      <code>SetScrollPos</code>,
      <code>SetScrollbar</code>,
      <code>SetSize</code>,
      <code>SetSizeHints</code>,
      <code>SetSizeHintsSz</code>,
      <code>SetSizeWH</code>,
      <code>SetSizer</code>,
      <code>SetSizerAndFit</code>,
      <code>SetThemeEnabled</code>,
      <code>SetToolTip</code>,
      <code>SetToolTipString</code>,
      <code>SetTransparent</code>,
      <code>SetValidator</code>,
      <code>SetVirtualSize</code>,
      <code>SetVirtualSizeHints</code>,
      <code>SetVirtualSizeHintsSz</code>,
      <code>SetVirtualSizeWH</code>,
      <code>SetWindowStyle</code>,
      <code>SetWindowStyleFlag</code>,
      <code>SetWindowVariant</code>,
      <code>ShouldInheritColours</code>,
      <code>Show</code>,
      <code>ShowWithEffect</code>,
      <code>Thaw</code>,
      <code>ToggleWindowStyle</code>,
      <code>TransferDataFromWindow</code>,
      <code>TransferDataToWindow</code>,
      <code>UnregisterHotKey</code>,
      <code>UnsetToolTip</code>,
      <code>Update</code>,
      <code>UpdateWindowUI</code>,
      <code>UseBgCol</code>,
      <code>Validate</code>,
      <code>WarpPointer</code>,
      <code>WindowToClientSize</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._core.EvtHandler</code></b>:
      <code>AddPendingEvent</code>,
      <code>Bind</code>,
      <code>Connect</code>,
      <code>DeletePendingEvents</code>,
      <code>Disconnect</code>,
      <code>GetEvtHandlerEnabled</code>,
      <code>GetNextHandler</code>,
      <code>GetPreviousHandler</code>,
      <code>IsUnlinked</code>,
      <code>ProcessEvent</code>,
      <code>ProcessEventLocally</code>,
      <code>ProcessPendingEvents</code>,
      <code>QueueEvent</code>,
      <code>SafelyProcessEvent</code>,
      <code>SetEvtHandlerEnabled</code>,
      <code>SetNextHandler</code>,
      <code>SetPreviousHandler</code>,
      <code>Unbind</code>,
      <code>Unlink</code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._core.EvtHandler</code></b> (private):
      <code>_setOORInfo</code>
      </p></div>
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._core.Object</code></b>:
      <code>GetClassName</code>,
      <code>IsSameAs</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>threading.Thread</code></b>:
      <code>getName</code>,
      <code>isAlive</code>,
      <code>isDaemon</code>,
      <code>is_alive</code>,
      <code>join</code>,
      <code>run</code>,
      <code>setDaemon</code>,
      <code>setName</code>,
      <code>start</code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>threading.Thread</code></b> (private):
      <code>_reset_internal_locks</code>,
      <code>_set_daemon</code>,
      <code>_set_ident</code>
      </p></div>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>threading._Verbose</code></b> (private):
      <code>_note</code>
      </p></div>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== STATIC METHODS ==================== -->
<a name="section-StaticMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Static Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-StaticMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._windows.Panel</code></b>:
      <code>GetClassDefaultAttributes</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._core.Window</code></b>:
      <code>FindFocus</code>,
      <code>GetCapture</code>,
      <code>NewControlId</code>,
      <code>ReleaseControlId</code>,
      <code>UnreserveControlId</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="InitialBallsList"></a><span class="summary-name">InitialBallsList</span> = <code title="[]"><code class="variable-group">[</code><code class="variable-group">]</code></code><br />
      Zmienna okre&#347;laj&#261;ca pocz&#261;tkow&#261; list&#281; pi&#322;eczek.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="BallsList"></a><span class="summary-name">BallsList</span> = <code title="[]"><code class="variable-group">[</code><code class="variable-group">]</code></code><br />
      Zmienna okre&#347;laj&#261;ca list&#281; pi&#322;eczek.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="LastRefreshTime"></a><span class="summary-name">LastRefreshTime</span> = <code title="138.100599792">138.100599792</code><br />
      Zmienna okre&#347;laj&#261;ca ostatni czas w kt&#243;rym od&#347;wie&#380;one zosta&#322;o 
      rysowanie na p&#322;&#243;tnie.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="SimulationTime"></a><span class="summary-name">SimulationTime</span> = <code title="0.0">0.0</code><br />
      Zmienna okre&#347;laj&#261;ca czas trwania symulacji.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Main.Canvas-class.html#StopSimulation" class="summary-name">StopSimulation</a> = <code title="True">True</code><br />
      Zmienna okre&#347;laj&#261;ca czy symulacja jest zatrzymana.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Main.Canvas-class.html#PlaySimulation" class="summary-name">PlaySimulation</a> = <code title="False">False</code><br />
      Zmienna okre&#347;laj&#261;ca czy symulacja w&#322;&#261;czona.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Main.Canvas-class.html#PauseSimulation" class="summary-name">PauseSimulation</a> = <code title="False">False</code><br />
      Zmienna okre&#347;laj&#261;ca czy symulacja jest wstrzymana.
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Properties</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Properties"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._windows.Panel</code></b>:
      <code>thisown</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._core.Window</code></b>:
      <code>AcceleratorTable</code>,
      <code>AutoLayout</code>,
      <code>BackgroundColour</code>,
      <code>BackgroundStyle</code>,
      <code>BestSize</code>,
      <code>BestVirtualSize</code>,
      <code>Border</code>,
      <code>Caret</code>,
      <code>CharHeight</code>,
      <code>CharWidth</code>,
      <code>Children</code>,
      <code>ClientAreaOrigin</code>,
      <code>ClientRect</code>,
      <code>ClientSize</code>,
      <code>Constraints</code>,
      <code>ContainingSizer</code>,
      <code>Cursor</code>,
      <code>DefaultAttributes</code>,
      <code>DropTarget</code>,
      <code>EffectiveMinSize</code>,
      <code>Enabled</code>,
      <code>EventHandler</code>,
      <code>ExtraStyle</code>,
      <code>Font</code>,
      <code>ForegroundColour</code>,
      <code>GrandParent</code>,
      <code>GtkWidget</code>,
      <code>Handle</code>,
      <code>HelpText</code>,
      <code>Id</code>,
      <code>Label</code>,
      <code>LayoutDirection</code>,
      <code>MaxClientSize</code>,
      <code>MaxHeight</code>,
      <code>MaxSize</code>,
      <code>MaxWidth</code>,
      <code>MinClientSize</code>,
      <code>MinHeight</code>,
      <code>MinSize</code>,
      <code>MinWidth</code>,
      <code>Name</code>,
      <code>Parent</code>,
      <code>Position</code>,
      <code>Rect</code>,
      <code>ScreenPosition</code>,
      <code>ScreenRect</code>,
      <code>Shown</code>,
      <code>Size</code>,
      <code>Sizer</code>,
      <code>ThemeEnabled</code>,
      <code>ToolTip</code>,
      <code>ToolTipString</code>,
      <code>TopLevel</code>,
      <code>TopLevelParent</code>,
      <code>UpdateClientRect</code>,
      <code>UpdateRegion</code>,
      <code>Validator</code>,
      <code>VirtualSize</code>,
      <code>WindowStyle</code>,
      <code>WindowStyleFlag</code>,
      <code>WindowVariant</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._core.EvtHandler</code></b>:
      <code>EvtHandlerEnabled</code>,
      <code>NextHandler</code>,
      <code>PreviousHandler</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>wx._core.Object</code></b>:
      <code>ClassName</code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>threading.Thread</code></b>:
      <code>daemon</code>,
      <code>ident</code>,
      <code>name</code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>threading.Thread</code></b> (private):
      <code>_block</code>
      </p></div>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">ToolBar</span>,
        <span class="sig-arg">MainFrame</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Konstruktor tworzy losowy zestaw pi&#322;eczek na podstawie opcji symulacji
  wybranych przez u&#380;ytkownika.</p>
  <p>Zachowuje pocz&#261;tkowe po&#322;o&#380;enie i pr&#281;dko&#347;ci pi&#322;eczek tak, aby mo&#380;na 
  by&#322;o powt&#243;rzy&#263; t&#261; sam&#261; symulacj&#281;. Uruchamia w&#261;tek rysowania pi&#322;eczek na 
  ekranie i obliczania ich nowego po&#322;o&#380;enia.</p>
  <p>Konstruktor tworzy pi&#322;eczki tak aby &#380;adna z pi&#322;eczek nie nachodzi&#322;a na
  siebie i &#380;adna pi&#322;eczka nie posiada&#322;a tego samego punktu 
  pocz&#261;tkowego.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>ToolBar</code></strong> - Parametr okre&#347;laj&#261;cy pasek narz&#281;dzi.</li>
        <li><strong class="pname"><code>MainFrame</code></strong> - Parametr okre&#347;laj&#261;cy g&#322;&#243;wne okno programu.</li>
        <li><strong class="pname"><code>wx.Panel</code></strong> - Klasa panelu, po kt&#243;rym dziedziczy p&#322;&#243;tno.</li>
        <li><strong class="pname"><code>Thread</code></strong> - Klasa w&#261;tku, po kt&#243;rym dziedziczy p&#322;&#243;tno, aby obs&#322;u&#380;y&#263; symulacj&#281;.</li>
    </ul></dd>
    <dt>Returns: EvtHandler</dt>
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="OnTool"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnTool</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.OnTool">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura wywo&#322;ywana w momencie naci&#347;ni&#281;cia jednego z przycisk&#243;w paska
  narz&#281;dzi.</p>
  <p>Odpowiada za wywo&#322;ywanie procedur odpowiedzialnych za obs&#322;ug&#281; 
  w&#322;&#261;czania, wy&#322;&#261;czania lub wstrzymywania symulacji.</p>
  <p>W przypadku wci&#347;ni&#281;cia przycisku <b>Play</b> blokowana jest mo&#380;liwo&#347;&#263; 
  otwarcia okna z opcjami symulacji oraz mo&#380;na wcisn&#261;&#263; przycisk 
  <b>Pause</b> aby wstrzyma&#263; symulacj&#281;. W przypadku wci&#347;ni&#281;cia przycisku 
  <b>Stop</b> blokowana jest mo&#380;liwo&#347;&#263; wci&#347;ni&#281;cia przycisku <b>Pause</b>, 
  symulacja zostaje zatrzymana oraz umo&#380;liwione zostaje przysi&#347;ni&#281;cie 
  przycisku <b>Options</b> aby otworzy&#263; okno z opcjami symulacji.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Event</code></strong> - Parametr okre&#347;laj&#261;cy obs&#322;ugiwane zdarzenie.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnOptions"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnOptions</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.OnOptions">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura wywo&#322;ywana w momencie naci&#347;ni&#281;cia przycisku opcji 
  <b>Options</b>.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Event</code></strong> - Parametr okre&#347;laj&#261;cy obs&#322;ugiwane zdarzenie.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="createRandomBall"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">createRandomBall</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.createRandomBall">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja tworz&#261;ca pi&#322;eczk&#281; o losowym po&#322;o&#380;eniu pocz&#261;tkowym, promieniu, 
  masie i pocz&#261;tkowej pr&#281;dko&#347;ci zgodnie z minimalnymi i maksymalnymi 
  warto&#347;ciami tych parametr&#243;w podanymi w opcjach symulacji.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Funkcja zwraca losowo utworzon&#261; pi&#322;eczk&#281; posiadaj&#261;c&#261; okre&#347;lone 
          parametry takie jak:
          <ol start="1">
            <li>
              Promie&#324;.
            </li>
            <li>
              Pozycja na p&#322;&#243;tnie.
            </li>
            <li>
              Masa.
            </li>
            <li>
              Pr&#281;dko&#347;&#263; pocz&#261;tkowa (losowa).
            </li>
          </ol></dd>
  </dl>
</td></tr></table>
</div>
<a name="createWalls"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">createWalls</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.createWalls">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja tworz&#261;ca predefiniowan&#261; list&#281; &#347;cian - nieruchomych przeszk&#243;d 
  dla pi&#322;eczek.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>Funkcja zwraca list&#281; 4 &#347;cian.</dd>
  </dl>
</td></tr></table>
</div>
<a name="OnPaint"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnPaint</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.OnPaint">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura obs&#322;uguj&#261;ca zdarzenie aktualizacji zawarto&#347;ci okna, w tym 
  po&#322;o&#380;enie pi&#322;eczek na p&#322;&#243;tnie.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Event</code></strong> - Parametr okre&#347;laj&#261;cy obs&#322;ugiwane zdarzenie.</li>
    </ul></dd>
    <dt>Overrides:
        wx._core.Window.OnPaint
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="OnSize"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnSize</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">Event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.OnSize">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura obs&#322;uguj&#261;ca zdarzenie zmiany wielko&#347;ci okna.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>Event</code></strong> - Parametr okre&#347;laj&#261;cy obs&#322;ugiwane zdarzenie.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="Redraw"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Redraw</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.Redraw">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura rysuj&#261;ca na p&#322;&#243;tnie wszystkie pi&#322;eczki oraz &#347;ciany w ich 
  aktualnym po&#322;o&#380;eniu.</p>
  <p>&#346;ciany i pi&#322;eczki rysowane s&#261; za pomoc&#261; wsp&#243;&#322;rz&#281;dnych zawartych w 
  odpowiednich listach.</p>
  <p>Funkcja odpowiada r&#243;wnie&#380; za wy&#347;wietlanie czasu trwania symulacji.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="playSimulation"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">playSimulation</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.playSimulation">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura uruchamiaj&#261;ca w&#261;tek symulacji.</p>
  <p>Je&#380;eli wci&#347;ni&#281;ty zosta&#322; przycisk <b>Play</b> to zmienna StopSimulation
  ustawiona zostaje na <b>False</b> a zmienna PlaySimulation na 
  <b>True</b>. Gdy w czasie kiedy wci&#347;ni&#281;ty zosta&#322; przycisk <b>Play</b> 
  symulacja by&#322;a wstrzymana to nast&#281;puje wznowienie symulacji (ustawienie 
  zmiennej PauseSimulation na <b>False</b>).</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="stopSimulation"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">stopSimulation</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.stopSimulation">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura zatrzymuj&#261;ca w&#261;tek symulacji.</p>
  <p>Procedura resetuje aktualne po&#322;o&#380;enie pi&#322;eczek do po&#322;o&#380;enia przed 
  symulacj&#261; i resetuje licznik czasu trwania sytuacji.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="calculateBallPositionAfterTime"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">calculateBallPositionAfterTime</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">ball</span>,
        <span class="sig-arg">t</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.calculateBallPositionAfterTime">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Funkcja obliczaj&#261;ca po&#322;o&#380;enie pi&#322;eczki po czasie t, w kt&#243;rym 
  znalaz&#322;aby si&#281; pi&#322;eczka, je&#347;li nie nast&#261;pi&#322;aby w tym czasie kolizja.</p>
  <p>Je&#380;eli grawitacja jest w&#322;&#261;czona nast&#281;puje przeliczanie wypadkowych si&#322;
  grawitacji. Je&#380;eli opcja jest wy&#322;&#261;czona wypadkowe si&#322;y grawitacji s&#261; 
  r&#243;wne zeru.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>ball</code></strong> - Parametr okre&#347;laj&#261;cy pi&#322;eczk&#281;.</li>
        <li><strong class="pname"><code>t</code></strong> - Parametr okre&#347;laj&#261;cy czas.</li>
    </ul></dd>
    <dt>Returns:</dt>
        <dd>Funkcja zwraca nowe po&#322;o&#380;enie pi&#322;eczki po up&#322;ywie czasu.</dd>
  </dl>
</td></tr></table>
</div>
<a name="simulate"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">simulate</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">iterationStartTime</span>=<span class="sig-default">0</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Main-pysrc.html#Canvas.simulate">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Procedura obs&#322;uguj&#261;ca g&#322;&#243;wn&#261; p&#281;tl&#281; symulacji.</p>
  <p>Procedura ta wykrywa kolizje pi&#322;eczek z innymi obiektami, wylicza ich 
  nowe po&#322;o&#380;enia i pr&#281;dko&#347;ci wynik&#322;e z kolizji i od&#347;wie&#380;a p&#322;&#243;tno. Po 
  up&#322;yni&#281;ciu czasu r&#243;wnego dt = 1/Options.FramesPerSecond procedura 
  uruchamia si&#281; ponownie z czasem symulacji zwi&#281;kszonym o dt.</p>
  <p>Reaguje na naci&#347;ni&#281;cie przycisk&#243;w paska narz&#281;dzi.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>iterationStartTime</code></strong> - Czas rozpocz&#281;cia kolejnej p&#281;tli symulacji w sekundach. Je&#347;li nie 
          podano, to domy&#347;lnie przyjmuje warto&#347;&#263; 0.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== CLASS VARIABLE DETAILS ==================== -->
<a name="section-ClassVariableDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variable Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariableDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="StopSimulation"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">StopSimulation</h3>
  <p>Zmienna okre&#347;laj&#261;ca czy symulacja jest zatrzymana.</p>
  <ol start="1">
    <li>
      <b>True</b> - Symulacja jest zatrzymana.
    </li>
    <li>
      <b>False</b> - Symulacja nie jest zatrzymana.
    </li>
  </ol>
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
True
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="PlaySimulation"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">PlaySimulation</h3>
  <p>Zmienna okre&#347;laj&#261;ca czy symulacja w&#322;&#261;czona.</p>
  <ol start="1">
    <li>
      <b>True</b> - Symulacja jest w&#322;&#261;czona.
    </li>
    <li>
      <b>False</b> - Symulacja nie jest w&#322;&#261;czona.
    </li>
  </ol>
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
False
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="PauseSimulation"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">PauseSimulation</h3>
  <p>Zmienna okre&#347;laj&#261;ca czy symulacja jest wstrzymana.</p>
  <ol start="1">
    <li>
      <b>True</b> - Symulacja jest wstrzymana.
    </li>
    <li>
      <b>False</b> - Symulacja nie jest wstrzymana.
    </li>
  </ol>
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
False
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="autorzy: Elwira Kowalewska, Piotr Karolus, Kacper Kapu&#347;niak grupa 21K7">
Modelowanie i symulacja zderze&#324; spr&#281;&#380;ystych
</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Jan 29 03:27:58 2014
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
